package com.zjsd.sqeybusiness.service;
import com.zjsd.sqeybusiness.domain.Payorderinfo;
import com.zjsd.sqeybusiness.domain.Payreturninfo;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;


public interface PayBaseService {

    Payorderinfo createOrder(String ywtype, Long orderId, String orderAmount, Long ma001, String remark, String openid, String ip);

    //@RequestMapping(value = "lakalaPayRefundNotify", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    //@ResponseBody
    void lakalaPayRefundNotify(HttpServletRequest request, HttpServletResponse response) throws IOException;

    Payorderinfo createCodePay(Long ma001, Long orderId, String orderAmount, String remark, String ywtype, String callbackurl );

    Payorderinfo queryOrderPay(Long agencyid,String reqsn);

    Payreturninfo refundOrder(Long agddsybdyid, BigDecimal refundFee, String bz, String ip);

    void lakalaPayNotify(HttpServletRequest request, HttpServletResponse response) throws IOException;

    void lakalaMiniPayNotify(HttpServletRequest request, HttpServletResponse response) throws IOException;
}
